//-----------------------------------------------------------------------------
//	File: task_init.c
//	Author: xialing
//		a task for init
//-----------------------------------------------------------------------------

#include "task_init.h"

// task prio & stk & id
#define TASK_PRIO	20
OS_TID task_init_id;

//-----------------------------------------------------------------------------
//	task_init - a task for init
//-----------------------------------------------------------------------------
__task void task_init(void)
{
	configure_led_gpio();

	while (1) {
		os_tsk_delete_self();
	}
}

//-----------------------------------------------------------------------------
//	task_init_create - task create for init
//-----------------------------------------------------------------------------
void task_init_create(void)
{
	task_init_id = os_tsk_create(task_init, TASK_PRIO);
}

